<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card>
        <!-- 添加按钮 -->
        <Toptoolbar>
          <template #leftbtn>
            <el-button type="primary" @click="visagents=true">添加经纪人</el-button>
          </template>
          <!-- 搜索框 -->
          <template #search>
            <template>
              <el-select
                v-model="value"
                clearable
                width="500px"
                filterable
                remote
                placeholder="请输入关键字"
              />
            </template>
            <!-- 放大镜 -->
            <el-button icon="el-icon-search" />
          </template>
        </Toptoolbar>
        <!-- 表格组件 -->
        <el-card>
          <el-table>
            <el-table-column label="图片" />
            <el-table-column label="标题" />
            <el-table-column label="介绍" />
            <el-table-column label="操作" />
          </el-table>
        </el-card>

        <el-row type="flex" justify="center">
          <el-pagination
            background
            layout="prev, pager, next"
          />
        </el-row>
      </el-card>
    </div>
  </div>
</template>
<script>

import { getFenlei } from '@/api/paging'
export default {
  data() {
    return {
      value: ''
    }
  },
  created() {

  },
  methods: {
    // 获取分页列表
    async getFenlei() {
      const res = await getFenlei({
        _limit: 2,
        _start: 0
      })
      console.log(res)
    }
  }
}
</script>
<style>

</style>
